#include <STC89C5xRC.H>
#define LED P00

void Delay1ms(unsigned int n);

void main() {
	while(1) {
		LED = ~LED;
		Delay1ms(1000);
	}
	
}
void Delay1ms(unsigned int n)		//@11.0592MHz
{
	unsigned char data i, j;
	while(n > 0) {
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
		n--;
	}
}
